<!-- Banner -->
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" type="text/css"
      href="${pageContext.request.contextPath}/resources/css/styleSheet.css">
<div class="title fixed-top form-inline" style="display: flex;" >
    <img src="${pageContext.request.contextPath}/resources/images/logo.gif" alt="logo" style="height: 100%; max-width: 200px; min-width: 100px;">
    <c:set var = "user" scope="session" value ="${sessionScope.employee}"/>
    <c:set var = "admin" scope="session" value ="${sessionScope.admin}"/>
    <!--每次引入该页面都询问session才行-->
    <div style="color: white;padding-bottom:10px;">
        <div class="col-1">
        </div>
        <c:if test="${empty employee}">
            <c:if test="${empty admin}">
                <h1 class="font-weight-bold" style="color:white;">您尚未登录 </h1>
                <a href="${pageContext.request.contextPath}/employee/login" style="color: white;" >普通员工登录</a>&nbsp;|&nbsp;<a href="${pageContext.request.contextPath}/admin/login" style="color: white;" >管理员登录</a>
            </c:if>
        </c:if>
        <c:if test="${not empty employee}">

        </c:if>

        <c:if test="${not empty admin}">
            <h1 class="font-weight-bold" style="color:white;">Welcome!&nbsp;${sessionScope.admin.username}&nbsp;</h1>
            <a href="${pageContext.request.contextPath}/admin/logout" style="color: white;float: right;">[退出]</a>
            <a href="http://localhost:8080/admin/getDepartInfo" style="color: white;">[首页]</a>
        </c:if>
    </div>
</div>
